package com.xnyzc.lhy.mis.entity.approval;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
*
* 用户公务提额申请
*
* @author zhuyubin
* @since 2019-08-27
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="OaCRaiseApply对象", description="用户公务提额申请")
public class OaCRaiseApply implements Serializable {

private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value="raise_id", type = IdType.INPUT)
    private Long raiseId;

    @ApiModelProperty(value = "提额订单号")
    private String orderNo;

    @ApiModelProperty(value = "用户ID")
    private Long userId;

    @ApiModelProperty(value = "部门ID")
    private Long officeId;

    @ApiModelProperty(value = "申请额度")
    private BigDecimal applyAmount;

    @ApiModelProperty(value = "申请额度类型(0个人、1公务)")
    private Integer applyAmountType;

    @ApiModelProperty(value = "申请原因")
    private String applyReason;

    @ApiModelProperty(value = "申请事项（参见字典表）")
    private Integer applyMatter;

    @ApiModelProperty(value = "审批状态（0：待审批、1：审批中、2：通过、3：驳回、4：取消申请）")
    private Integer approvalStatus;

    @ApiModelProperty(value = "审批流模板ID")
    private Long approvalId;

    @ApiModelProperty(value = "当前审批节点")
    private Integer approvalNode;

    @ApiModelProperty(value = "审批意见")
    private String approvalOpinion;

    @ApiModelProperty(value = "用户来源")
    private String tag;

    @ApiModelProperty(value = "扩展字段1")
    private String expand1;

    @ApiModelProperty(value = "扩展字段2")
    private String expand2;

    @ApiModelProperty(value = "扩展字段3")
    private String expand3;

    @ApiModelProperty(value = "版本号")
    @Version
    private Long version;

    @ApiModelProperty(value = "是否删除(0:否,1:是)")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "创建人")
    private Long createUser;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    private Long updateUser;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


    public static final String RAISE_ID = "raise_id";

    public static final String ORDER_NO = "order_no";

    public static final String USER_ID = "user_id";

    public static final String OFFICE_ID = "office_id";

    public static final String APPLY_AMOUNT = "apply_amount";

    public static final String APPLY_AMOUNT_TYPE = "apply_amount_type";

    public static final String APPLY_REASON = "apply_reason";

    public static final String APPLY_MATTER = "apply_matter";

    public static final String APPROVAL_STATUS = "approval_status";

    public static final String APPROVAL_ID = "approval_id";

    public static final String APPROVAL_NODE = "approval_node";

    public static final String APPROVAL_OPINION = "approval_opinion";

    public static final String TAG = "tag";

    public static final String EXPAND1 = "expand1";

    public static final String EXPAND2 = "expand2";

    public static final String EXPAND3 = "expand3";

    public static final String VERSION = "version";

    public static final String DELETED = "deleted";

    public static final String CREATE_USER = "create_user";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_USER = "update_user";

    public static final String UPDATE_TIME = "update_time";

}
